package com.china.lottery.listener.dao.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "L_BALANCE_ACCOUNT")
public class LBalanceAccount {
	
	private Long id;
	private String channel_code;
	private String agent_id;
	private String merchant_id;
	private String money;
	private String multiple;
	private String cast_method;
	private String play_type;
	private String dzmoney;
	private Date createTime;

	private Date updateTime;
	
	private String ticket_id;


	public LBalanceAccount(){}
	
	public LBalanceAccount(String channel_code,String agent_id,String merchant_id,String money,String multiple,String cast_method,String play_type,
			String dzmoney,Date createTime,String ticket_id){
		 this.channel_code= channel_code;
		 this.agent_id= agent_id;
		 this.merchant_id= merchant_id;
		 this.money= money;
		 this.multiple= multiple;
		 this.cast_method= cast_method;
		 this.play_type= play_type;
		 this.dzmoney= dzmoney;
		 this.createTime= createTime;
		 this.ticket_id=ticket_id;
		 
	}

	@Id
	@SequenceGenerator(name = "S_BALANCE_ACCOUNT_GENERATOR", sequenceName = "S_BALANCE_ACCOUNT", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "S_BALANCE_ACCOUNT_GENERATOR")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "CHANNEL_CODE")
	public String getChannel_code() {
		return channel_code;
	}

	public void setChannel_code(String channel_code) {
		this.channel_code = channel_code;
	}

	@Column(name = "AGENT_ID")
	public String getAgent_id() {
		return agent_id;
	}

	public void setAgent_id(String agent_id) {
		this.agent_id = agent_id;
	}

	
	@Column(name = "MERCHANT_ID")
	public String getMerchant_id() {
		return merchant_id;
	}

	public void setMerchant_id(String merchant_id) {
		this.merchant_id = merchant_id;
	}
    
	
	@Column(name = "MONEY")
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	
	@Column(name = "MULTIPLE")
	public String getMultiple() {
		return multiple;
	}

	public void setMultiple(String multiple) {
		this.multiple = multiple;
	}

	
	@Column(name = "CAST_METHOD")
	public String getCast_method() {
		return cast_method;
	}

	public void setCast_method(String cast_method) {
		this.cast_method = cast_method;
	}

	
	@Column(name = "PLAY_TYPE")
	public String getPlay_type() {
		return play_type;
	}

	public void setPlay_type(String play_type) {
		this.play_type = play_type;
	}

	
	@Column(name = "DZMONEY")
	public String getDzmoney() {
		return dzmoney;
	}

	public void setDzmoney(String dzmoney) {
		this.dzmoney = dzmoney;
	}

	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Column(name = "TICKET_ID")
	public String getTicket_id() {
		return ticket_id;
	}

	public void setTicket_id(String ticket_id) {
		this.ticket_id = ticket_id;
	}
	
	
}
